/**
 * Created with IntelliJ IDEA.
 * User: val
 * Date: 8/23/13
 * Time: 11:35 PM
 * To change this template use File | Settings | File Templates.
 */
public class Target {

    public double d;
    public double a;
    public double x;
    public double y;
    public double h;


    public Target(){

    }

    public Target(double d, double a, double h){
        this.d = d;
        this.a = a;
        this.h = h;
    }

    public Target(double d, double a, double h, double x, double y){
        this.d = d;
        this.a = a;
        this.h = h;
        this.x = x;
        this.y = y;
    }

    class TargetBuilder {

        private Target target;

        public TargetBuilder(){

        }

        public Target create(){
            target = new Target();
            return target;
        }

        public Target setX(double x){
            target.x = x;
            return target;
        }

        public Target setY(double y){
            target.y = y;
            return target;
        }

        public Target setDistance( double d){
            target.d = d;
            return target;
        }

        public Target setAngle(double a){
            target.a = a;
            return target;
        }

        public Target setHeight(double h){
            target.h = h;
            return target;
        }


    }


    public static Target createTarget(){
        return new Target();
    }





}
